package com.liveinstars.api.im.vo;

import com.google.common.collect.Lists;
import lombok.Data;

import java.util.List;

/**
 * @author: zhouze
 * @date: 2020/3/20
 */
@Data
public class CoinVO {

    /**
     * 币种名称
     */
    private String coinName;

    /**
     * 中文名称
     */
    private String cnName;

    /**
     * 描述
     */
    private String description;

    /**
     * 简称
     */
    private String symbol;

    /**
     * 币种唯一key
     */
    private String coinKey;

    /**
     * 币种Logo
     */
    private String logo;

    public void mock() {
        this.setCoinKey("BTC");
        this.setCnName("比特币");
        this.setSymbol("BTC");
        this.setCoinName("Bitcoin");
        this.setLogo("https://appserversrc.8btc.com/coin_info/img/BTC-Bitcoin.svg");
        this.setDescription("这个是一个描述");
    }

    public static List<CoinVO> mockList(){
        List<CoinVO> list = Lists.newArrayList();
        CoinVO coinVO = new CoinVO();
        coinVO.mock();
        list.add(coinVO);
        coinVO = new CoinVO();
        coinVO.setCoinName("Ethereum");
        coinVO.setCnName("以太坊");
        coinVO.setSymbol("ETH");
        coinVO.setCoinKey("ETH");
        coinVO.setLogo("https://appserversrc.8btc.com/coin_info/img/ETH-Ethereum.svg");
        coinVO.setDescription("这个是一个描述");
        list.add(coinVO);

        coinVO = new CoinVO();
        coinVO.setCoinName("Bytom");
        coinVO.setCnName("比原");
        coinVO.setSymbol("BTM");
        coinVO.setCoinKey("BTM");
        coinVO.setLogo("https://appserversrc.8btc.com/coin_info/img/BTM-Bytom.svg");
        coinVO.setDescription("这个是一个描述");
        list.add(coinVO);
        return list;
    }
}
